package net.lcheng.service.impl;

import net.lcheng.dao.UserAccountMapper;
import net.lcheng.model.UserAccount;
import net.lcheng.model.UserAccountExample;
import net.lcheng.service.UserAccountService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by zwr on 2016/7/15 0015.
 */
@Service
public class UserAccountServiceImpl implements UserAccountService {
@Resource
private UserAccountMapper mapper;
    @Override
    public List<UserAccount> getUserAccountByUserId(String userId) {
        UserAccountExample example=new UserAccountExample();
        example.or().andUserUserIdEqualTo(userId);
        return mapper.selectByExample(example);
    }
}
